//
//  EntertainmentViewController.m
//  TodayFirstNews
//
//  Created by 向祖华 on 16/3/2.
//  Copyright © 2016年 向祖华. All rights reserved.
//

#import "EntertainmentViewController.h"

@interface EntertainmentViewController ()

@end

@implementation EntertainmentViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    CGFloat num1 = arc4random() % 255 ;
    CGFloat num2 = arc4random() %255;
    CGFloat num3 = arc4random() % 255;
    self.view.backgroundColor = [UIColor colorWithRed:num1/255.0 green:num2/255.0 blue:num3/255.0 alpha:1];
    UILabel * lable = [[UILabel alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
    lable.text = @"娱乐";
    [self.view addSubview:lable];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
